public class emp {
    private String idname;
    private int id;
    private int sal;

    public emp() {
    }

    public emp(String idname, int id, int sal) {
        this.idname = idname;
        this.id = id;
        this.sal = sal;
    }

    public String getIdname() {
        return idname;
    }

    public void setIdname(String idname) {
        this.idname = idname;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getSal() {
        return sal;
    }

    public void setSal(int sal) {
        this.sal = sal;
    }

    @Override
    public String toString() {
        return "emp{" +
                "idname='" + idname + '\'' +
                ", id=" + id +
                ", sal=" + sal +
                '}';
    }
}
